﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WpfNet8Test
{
    /// <summary>
    /// ZCustomDialog.xaml 的交互逻辑
    /// </summary>
    public partial class ZCustomDialog : Window
    {
        public ZCustomDialog()
        {
            InitializeComponent();
        }

        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            //this.Close();
        }

        private void okButton_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("你点击了OK按钮呢");
            this.Close();
        }

        private void cancelButton_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("用户点击了取消按钮");
            this.Close();
        }
    }
}
